package com.dlc.shop.bean.event;

import com.dlc.shop.bean.app.dto.ShopCartItemDto;
import com.dlc.shop.bean.vo.search.ProductSearchVO;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

/**
 * 加载商品会员价、可用优惠券信息
 * @author LHD
 */
@Data
@AllArgsConstructor
public class LoadProdOffersEvent {

    /**
     * 商品id
     */
    private List<ShopCartItemDto> shopCartItems;

    /**
     * 商品id
     */
    private List<ProductSearchVO> productSearchList;
    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 用户Id
     */
    private String userId;

    public LoadProdOffersEvent(List<ShopCartItemDto> shopCartItems, List<ProductSearchVO> productSearchList, Long shopId) {
        this.shopCartItems = shopCartItems;
        this.productSearchList = productSearchList;
        this.shopId = shopId;
    }
}
